package com.handpay.framework.swiper;

/**
 * Created by jmshuai on 2014/8/21.
 * 请注意和values/arrays.xml里的swipe_model对应
 */
public enum SwiperModel {
    KOAL_VOICE(true, false, IPersonalSwiper.SwiperType.VOICE, true),
    KOAL_BLUETOOTH(true, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 2 ME30（NZ02）蓝牙刷卡器
    NEWLAND_BLUETOOTH(true, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 3 音频磁条刷卡器(H01)
    GJACK_VOICE_MAG(false, false, IPersonalSwiper.SwiperType.VOICE),
    GJACK_VOICE_IC(false, false, IPersonalSwiper.SwiperType.VOICE),
    // 5 音频IC刷卡器(MI-1210)
    BBPOS_VOICE(false, false, IPersonalSwiper.SwiperType.VOICE),
    // 6 音频IC刷卡器(A0201) 
    NEWLAND_VOICE_IC(false, false, IPersonalSwiper.SwiperType.VOICE),
    // 7 ME35（LANDI）蓝牙刷卡器
    M35_BLUETOOTH(true, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 8 ME31蓝牙刷卡器
    ME31_BLUETOOTH(true, true, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 9 M368（B0101)蓝牙刷卡器
    ME368_BLUETOOTH(true, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 10 瑞银金融(A0801)
    CMSET_VOICE(false, false, IPersonalSwiper.SwiperType.VOICE),
    // 11 ME15C(B0202)蓝牙刷卡器
    ME15_BLUETOOTH(false, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 12 M188(B0103)蓝牙刷卡器
    M188_BLUETOOTH(false, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 13 M1218(B0102)蓝牙刷卡器
    M1218_BLUETOOTH(false, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 14 I21b蓝牙刷卡器
    I21B_BLUETOOTH(false, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 15 P27蓝牙刷卡器
    P27_BLUETOOTH(false, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    //16
    M36_BLUETOOTH(true, true, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    //17 M198(B0103)蓝牙刷卡器
    M198_BLUETOOTH(false, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 18 ME18(B0202)蓝牙刷卡器
    M18_BLUETOOTH(false, false, IPersonalSwiper.SwiperType.BLUETOOTH, true),
    // 19 P84蓝牙刷卡器
    P84_BLUETOOTH(true, false, IPersonalSwiper.SwiperType.BLUETOOTH, true);

    public boolean mIsSingleKey;
    public boolean mSupportPwd;
    public boolean mSupportAffirmAmount;
    public boolean mSupportPrint;
    IPersonalSwiper.SwiperType mSwiperType;
    public boolean mSupportSwiper; //刷卡界面  True  代表蓝牙   Flase 代表音频

    SwiperModel(boolean supportPwd, boolean supportPrint, IPersonalSwiper.SwiperType swiperType) {
        mIsSingleKey = true; // 单密钥
        mSupportAffirmAmount = false; // 支持确认金额
        // 以上两个域，都是原来格尔接口需要的，暂时保留。以后去掉
        mSupportPwd = supportPwd;
        mSupportPrint = supportPrint;
        mSwiperType = swiperType;
        mSupportSwiper = false;
    }

    SwiperModel(boolean supportPwd, boolean supportPrint, IPersonalSwiper.SwiperType swiperType, boolean supportSwiper) {
        mIsSingleKey = true; // 单密钥
        mSupportAffirmAmount = false; // 支持确认金额
        // 以上两个域，都是原来格尔接口需要的，暂时保留。以后去掉
        mSupportPwd = supportPwd;
        mSupportPrint = supportPrint;
        mSwiperType = swiperType;
        mSupportSwiper = supportSwiper;
    }
}
